package com.tarena.lbs.user.dao.repository.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tarena.lbs.user.dao.mapper.UserTagsMapper;
import com.tarena.lbs.user.dao.repository.UserTagsRepository;
import com.tarena.lbs.user.pojo.po.UserTagsPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class UserTagsRepositoryImpl implements UserTagsRepository {
    @Autowired
    private UserTagsMapper userTagsMapper;
    @Override
    public void saveBatch(List<UserTagsPO> pos) {
        userTagsMapper.insert( pos);
    }

    @Override
    public void remove(QueryWrapper queryWrapper) {
        userTagsMapper.delete(queryWrapper);
    }
}
